package com.wish.wishfinancial_service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wish.wishfinancial_service.entity.TJrProduct;
import com.wish.wishfinancial_service.enums.FinanceProductTypeEnum;
import com.wish.wishfinancial_service.mapper.TJrProductMapper;
import com.wish.wishfinancial_service.service.ITJrProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author weijiaz
 * @since 2021-04-10
 */
@Service
public class TJrProductServiceImpl extends ServiceImpl<TJrProductMapper, TJrProduct> implements ITJrProductService {

    @Override
    public List<TJrProduct> searchSfProduct() {
        QueryWrapper<TJrProduct> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("jr_product_type", FinanceProductTypeEnum.SFLOAN.getIndex());
        queryWrapper.eq("del_flg",0);
        return baseMapper.selectList(queryWrapper);
    }
}
